<?php
/*
 * ebiz front
 *
 * find password View
 *
 * @author allen
 *
 */

require_once '../app/views/BaseView.php';
class CampusApplyView extends BaseView {

    public function getPage(){
        $arr_navsetting = array(
            array('url'=>'/userinfo/index', 'text'=>MYAKIMIMITXT),
            array('text'=>CAMPUSAPPLYTITLE)
        );
        $this->setPageTitle(CAMPUSAPPLYTITLE);
        $this->addCSS('myaccount.css');
        $this->addCSS('myaccountleftnav.css');
        $this->addJS('campusapply.js');
        $header = '';
        require_once '../app/views/MyAccoutLeftNavView.php';
        $myAccountLeftNavView = new MyAccountLeftNav();
        $str_result = $header
                    . $this->getNavigation($arr_navsetting)
                    . "<div id='mymimi_body'>"
                    . $myAccountLeftNavView->getMyAccountLeftNav()
                    . $this->getContent()
                    . '</div>';
        return $this->getHtmlPage($str_result);
    }

    public function getContent(){
        $str_iConstants = ConfigConstants::$iConstants;
        $arr_constants = get_defined_constants();
        $str_area = CommonUtil::getCityDictHtml();
        $str_result =
<<<str_result
    <div id='mymimi_right'>
        <div class='right_bj'></div>
        <!-- Error Message -->
        <input type='hidden' id='niceMsg' value='{$arr_constants['NICEMSG']}' />
        <input type='hidden' id='usernameMsg' value='{$arr_constants['USERNAMEMSG']}' />
        <input type='hidden' id='emailMsg' value='{$arr_constants['EMAILMSG']}' />
        <input type='hidden' id='fullnameMsg' value='{$arr_constants['FULLNAMEMSG']}' />
        <input type='hidden' id='ageMsg' value='{$arr_constants['AGEMSG']}' />
        <input type='hidden' id='postal_codeMsg' value='{$arr_constants['POSTALCODEMSG']}' />
        <input type='hidden' id='schoolMsg' value='{$arr_constants['SCHOOLMSG']}' />
        <input type='hidden' id='departmentMsg' value='{$arr_constants['DEPARTMENTMSG']}' />
        <input type='hidden' id='zhuanyeMsg' value='{$arr_constants['ZHUANYEMSG']}' />
        <input type='hidden' id='addressMsg' value='{$arr_constants['ADDRESSMSG']}' />
        <input type='hidden' id='dormitory_addressMsg' value='{$arr_constants['DORMITORYADDRESSMSG']}' />
        <input type='hidden' id='dentity_idMsg' value='{$arr_constants['DENTITYIDMSG']}' />
        <input type='hidden' id='qqMsg' value='{$arr_constants['QQMSG']}' />
        <input type='hidden' id='mobileMsg' value='{$arr_constants['MOBILEMSG']}' />
        <input type='hidden' id='student_idMsg' value='{$arr_constants['STUDENTIDMSG']}' />
        <input type='hidden' id='addressnMsg' value='{$arr_constants['ADDRESSNMSG']}' />
        <input type="hidden" id="errorAreaEmpty" value="{$arr_constants['ERRORAREA']}" />
        <input type='hidden' id='addressn' />
        <!-- /Error Message -->
        <form action='/o/campusapply' method='post' id='campusapplyForm' onsubmit='return CampusApply.checkForm();'>
            <table style='margin:20px;'>
                <tr>
                    <td>{$arr_constants['USERNAMELBL']}</td>
                    <td><input type='text' id='username' name='username' maxlength='70' onblur='javascript:CampusApply.validateData.validateUserId();' /></td>
                    <td><span id='usernameMemo'>{$arr_constants['USERNAMEMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['EMAILLBL']}</td>
                    <td><input type='text' id='email' name='email' maxlength='45' onblur='javascript:CampusApply.validateData.validateEmail();' /></td>
                    <td><span id='emailMemo'>{$arr_constants['EMAILMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['FULLNAMELBL']}</td>
                    <td><input type='text' id='fullname' name='full_name' maxlength='45' onblur='javascript:CampusApply.validateData.validateFullname();' /></td>
                    <td><span id='fullnameMemo'>{$arr_constants['FULLNAMEMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['AGELBL']}</td>
                    <td><input type='text' id='age' name='age' maxlength='11' onblur='javascript:CampusApply.validateData.validateAge();' /></td>
                    <td><span id='ageMemo'>{$arr_constants['AGEMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['SEXLBL']}</td>
                    <td>
                        <input type='radio' name='sex' value='{$arr_constants['SEXFVAL']}' checked='checked' />{$arr_constants['SEXFTXT']}
                        <input type='radio' name='sex' value='{$arr_constants['SEXMVAL']}' />{$arr_constants['SEXMTXT']}
                    </td>
                    <td><span id='sexMemo'>{$arr_constants['SEXMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['ADDRESSNLBL']}</td>
                    <td>{$str_area}</td>
                    <td><span id='addressnMemo'>{$arr_constants['ADDRESSNMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['POSTALCODELBL']}</td>
                    <td><input type='text' id='postal_code' name='postal_code' maxlength='45' onblur='javascript:CampusApply.validateData.validatePostalCode();' /></td>
                    <td><span id='postal_codeMemo'>{$arr_constants['POSTALCODEMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['SCHOOLLBL']}</td>
                    <td><input type='text' id='school' name='school' maxlength='125' onblur='javascript:CampusApply.validateData.validateSchool();' /></td>
                    <td><span id='schoolMemo'>{$arr_constants['SCHOOLMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['DEPARTMENTLBL']}</td>
                    <td><input type='text' id='department' name='department' maxlength='125' onblur='javascript:CampusApply.validateData.validateDepartment();' /></td>
                    <td><span id='departmentMemo'>{$arr_constants['DEPARTMENTMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['ZHUANYELBL']}</td>
                    <td><input type='text' id='zhuanye' name='zhuanye' maxlength='125' onblur='javascript:CampusApply.validateData.validateZhuanye();' /></td>
                    <td><span id='zhuanyeMemo'>{$arr_constants['ZHUANYEMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['STUDENTIDLBL']}</td>
                    <td><input type='text' id='student_id' name='student_id' maxlength='45' onblur='javascript:CampusApply.validateData.validateStudentId();' /></td>
                    <td><span id='student_idMemo'>{$arr_constants['STUDENTIDMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['ADDRESSLBL']}</td>
                    <td><input type='text' id='address' name='address' maxlength='125' onblur='javascript:CampusApply.validateData.validateAddress();' /></td>
                    <td><span id='addressMemo'>{$arr_constants['ADDRESSMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['DORMITORYADDRESSLBL']}</td>
                    <td><input type='text' id='dormitory_address' name='dormitory_address' maxlength='125' onblur='javascript:CampusApply.validateData.validateDormitoryAddress();' /></td>
                    <td><span id='dormitory_addressMemo'>{$arr_constants['DORMITORYADDRESSMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['DENTITYIDLBL']}</td>
                    <td><input type='text' id='dentity_id' name='dentity_id' maxlength='45' onblur='javascript:CampusApply.validateData.validateDentityId();' /></td>
                    <td><span id='dentity_idMemo'>{$arr_constants['DENTITYIDMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['QQLBL']}</td>
                    <td><input type='text' id='qq' name='qq' maxlength='25' onblur='javascript:CampusApply.validateData.validateQQ();' /></td>
                    <td><span id='qqMemo'>{$arr_constants['QQMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['TELLBL']}</td>
                    <td><input type='text' id='tel' name='tel' maxlength='45' /></td>
                    <td><span id='telMemo'>{$arr_constants['TELMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['MOBILELBL']}</td>
                    <td><input type='text' id='mobile' name='mobile' maxlength='45' onblur='javascript:CampusApply.validateData.validateMobile();' /></td>
                    <td><span id='mobileMemo'>{$arr_constants['MOBILEMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['REMARKSLBL']}</td>
                    <td><textarea id='remarks' name='remarks'></textarea></td>
                    <td><span id='remarksMemo'>{$arr_constants['REMARKSMEMO']}</span></td>
                </tr>
                <tr>
                    <td>{$arr_constants['EVALUATIONLBL']}</td>
                    <td><input type='text' id='evaluation' name='evaluation' maxlength='125' /></td>
                    <td><span id='evaluationMemo'>{$arr_constants['EVALUATIONMEMO']}</span></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type='submit' value='{$arr_constants['SUBMITCAMPUSAPPLY']}' /></td>
                    <td></td>
                </tr>
            </table>
        </form>
    </div>
str_result;
    return $str_result;
    }

}
?>
